package com.neuedu.His02.service;

import com.neuedu.His02.entity.Department;
import com.neuedu.His02.entity.User;
import com.neuedu.His02.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper dao;

    @Override
    public User selectById(User u) {
        return dao.selectById(u);
    }

    @Override
    public User login(User u) {
        return dao.login(u);
    }
}
